package String;

public class StringAppendDemo {
    public static void main(String[] args) {
    String str = "字符串拼接";
    StringBuffer sb = new StringBuffer(str);
    for(int i=0;i<1000000;i++){
        //str+="a";
        sb.append(str);
        }
        System.out.println("执行完毕");
    }
}
